
#ifndef _BUFFER_H_
#define _BUFFER_H_

typedef struct {
	uint16_t size;
	uint16_t length;
	uint8_t data[2];
}Buffer_T;

void Buffer_Reset(Buffer_T* buf);

void Buffer_Put(Buffer_T* buf, uint8_t in[], uint16_t len);

void Buffer_Get(Buffer_T* buf, uint16_t offset, uint8_t out[], uint16_t len);

#endif

